﻿using System;
using MySql.Simple.Mapper.Attributes;
using MySql.Simple.Mapper.Structures;

namespace MySql.Simple.Mapper.Domain
{
    [Table]
    internal class Blog
    {
        [PrimaryKey]
        public int Id { get; set; }

        [Column]
        [Index(IndexType = IndexType.Unique)]
        public string Title { get; set; }

        [Column]
        [Index]
        public DateTime Created { get; set; }
    }
}
